#ifndef __IGAME_SCENE_H__
#define __IGAME_SCENE_H__
#include "cocos2d.h"

namespace fishingjoy
{
	namespace scene
	{

		class ISceneObject
		{
		public:
			virtual void setPosition(int x,int y)=0;
			virtual void setDuration(int degree) = 0;
			virtual void setAnimation(const char* aniName) = 0;
			virtual float getWidth() = 0;
			virtual float getHeight() = 0;
		};

		class IGameScene
		{
		public:
			virtual void attachTo(cocos2d::CCNode* node) = 0;
			virtual void update(float dt) = 0;
			virtual void setBackground(const char* pFile)= 0;

			virtual ISceneObject* createObject(int tid) = 0;

			virtual void destroyObject(ISceneObject* pObj) = 0;
		};

		extern IGameScene* createScene();

	}
}
#endif